package com.lwlean.test.modal.factory;

import org.junit.Test;

/**
 * Created by lean on 2017/3/21.
 */
public class FactoryJunit {

    @Test
    public void testFactory() {
        SenderFactory factory = new EmailSenderFactory();
        Sender sender = factory.createSender();
        sender.Send();
    }

}
